FROM ubuntu:18.04

ARG DEBIAN_FRONTEND=noninteractive

ENV TZ=Asia/Shanghai

RUN buildDeps='software-properties-common libtool wget unzip' && \
    apt-get update && apt-get install -y $buildDeps curl bash

# c++
RUN	add-apt-repository ppa:ubuntu-toolchain-r/test && \
    apt-get update && apt-get install -y gcc-9 g++-9 && \
    update-alternatives --install  /usr/bin/gcc gcc /usr/bin/gcc-9 40 && \
    update-alternatives --install  /usr/bin/g++ g++ /usr/bin/g++-9 40

# java
RUN add-apt-repository ppa:openjdk-r/ppa && \
    apt-get update && apt-get install -y openjdk-8-jdk

# golang
# RUN add-apt-repository ppa:longsleep/golang-backports && \
#    apt-get update && apt-get install -y golang-go && \
#    ln -s /usr/lib/go-1.19/bin/go /usr/bin/go

# c#
# RUN apt-get install -y mono-devel

# python
# RUN apt-get install -y python python3.7
# RUN apt-get install -y python python3.7

# pypy
# RUN add-apt-repository ppa:pypy/ppa && apt-get update && apt install -y pypy pypy3

# php
# RUN add-apt-repository ppa:ondrej/php && apt-get update && apt-get install -y php7.2-cli

# javascript
#	cd /tmp && wget -O jsv8.zip  https://storage.googleapis.com/chromium-v8/official/canary/v8-linux64-dbg-8.4.109.zip && \
#	unzip -d /usr/bin/jsv8 jsv8.zip && rm -rf /tmp/jsv8.zip && \
#	curl -fsSL https://deb.nodesource.com/setup_14.x | bash && \
#	apt-get install -y nodejs && \

# ruby
#	apt-get install -y ruby && \

# rust
#	apt-get install -y rustc && \

RUN  apt-get purge -y --auto-remove $buildDeps && \
     apt-get clean && rm -rf /var/lib/apt/lists/*
